<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>EasyIO-GPRS-Framework: api_type.h源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="搜索" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<h1>api_type.h</h1><a href="api__type_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef __api_type_h__</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define __api_type_h__</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#define EIResult_t int</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a><a class="code" href="structSerialOption.html">00019</a> <span class="keyword">struct </span><a class="code" href="structSerialOption.html">SerialOption</a> {
<a name="l00020"></a><a class="code" href="structSerialOption.html#adaf0d4e953074be58a2b4d1487b0b2f8">00020</a>         <span class="keywordtype">int</span> <a class="code" href="structSerialOption.html#adaf0d4e953074be58a2b4d1487b0b2f8">Baud</a>;                               
<a name="l00021"></a><a class="code" href="structSerialOption.html#a270cccb13d0c4730f0a65f7052b0c6f3">00021</a>         <span class="keywordtype">int</span> <a class="code" href="structSerialOption.html#a270cccb13d0c4730f0a65f7052b0c6f3">StopBits</a>;                           
<a name="l00022"></a><a class="code" href="structSerialOption.html#ae0fa9176e6a8c804328a38954c0b69ea">00022</a>         <span class="keywordtype">int</span> <a class="code" href="structSerialOption.html#ae0fa9176e6a8c804328a38954c0b69ea">Parityl</a>;                            
<a name="l00023"></a>00023 };
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="structDtuOption.html">00025</a> <span class="keyword">struct </span><a class="code" href="structDtuOption.html">DtuOption</a> {
<a name="l00026"></a><a class="code" href="structDtuOption.html#a5816bfe494abcf42ae0000c1635f9c4e">00026</a>         <span class="keywordtype">char</span> <a class="code" href="structDtuOption.html#a5816bfe494abcf42ae0000c1635f9c4e">host</a>[64];                          
<a name="l00027"></a><a class="code" href="structDtuOption.html#ae8eb9b4c83b9b3eff3c2c473d2723b31">00027</a>         <span class="keywordtype">char</span> <a class="code" href="structDtuOption.html#ae8eb9b4c83b9b3eff3c2c473d2723b31">port</a>[8];                           
<a name="l00028"></a><a class="code" href="structDtuOption.html#a5f748cfdca354ae8f07bd548a2fd5209">00028</a>         <span class="keywordtype">int</span> <a class="code" href="structDtuOption.html#a5f748cfdca354ae8f07bd548a2fd5209">heartbeat_cycle</a>;                    
<a name="l00029"></a><a class="code" href="structDtuOption.html#a82834aed22087112334fb5fed6ef8dd2">00029</a>         <span class="keywordtype">char</span> <a class="code" href="structDtuOption.html#a82834aed22087112334fb5fed6ef8dd2">heartbeat_buffer</a>[32];              
<a name="l00030"></a><a class="code" href="structDtuOption.html#a98d7b3ffa5aaf841f61b77302ce35c6e">00030</a>         <span class="keywordtype">int</span> <a class="code" href="structDtuOption.html#a98d7b3ffa5aaf841f61b77302ce35c6e">heartbeat_len</a>;                      
<a name="l00031"></a>00031 };
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="structXmppOption.html">00033</a> <span class="keyword">struct </span><a class="code" href="structXmppOption.html">XmppOption</a> {
<a name="l00034"></a><a class="code" href="structXmppOption.html#a9c4233af65e244f7f4994c140ff465a9">00034</a>         <span class="keywordtype">char</span> <a class="code" href="structXmppOption.html#a9c4233af65e244f7f4994c140ff465a9">username</a>[32];                              
<a name="l00035"></a><a class="code" href="structXmppOption.html#aecb667b8ea6e9e581cb5ca533b79d0b3">00035</a>         <span class="keywordtype">char</span> <a class="code" href="structXmppOption.html#aecb667b8ea6e9e581cb5ca533b79d0b3">password</a>[32];                              
<a name="l00036"></a><a class="code" href="structXmppOption.html#ac06f917e391e3d16c9012d469ec17f55">00036</a>         <span class="keywordtype">char</span> <a class="code" href="structXmppOption.html#ac06f917e391e3d16c9012d469ec17f55">domain</a>[64];                                
<a name="l00037"></a><a class="code" href="structXmppOption.html#a9451cbf4a025b254c950678f8e962aae">00037</a>         <span class="keywordtype">char</span> <a class="code" href="structXmppOption.html#a9451cbf4a025b254c950678f8e962aae">port</a>[8];                                   
<a name="l00038"></a><a class="code" href="structXmppOption.html#aeb599ffd18d08a473c6635dd9882a99d">00038</a>         <span class="keywordtype">char</span> <a class="code" href="structXmppOption.html#aeb599ffd18d08a473c6635dd9882a99d">host</a>[64];                                  
<a name="l00039"></a>00039 };
<a name="l00040"></a>00040 
<a name="l00041"></a><a class="code" href="structSysInfo.html">00041</a> <span class="keyword">struct </span><a class="code" href="structSysInfo.html">SysInfo</a> {
<a name="l00042"></a><a class="code" href="structSysInfo.html#a859b5e8cc7b33fc327a1a8b9d6de90f9">00042</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structSysInfo.html#a859b5e8cc7b33fc327a1a8b9d6de90f9">uptime</a>;                            
<a name="l00043"></a><a class="code" href="structSysInfo.html#aeba9b3707e60f739684b6f2b4daa3d86">00043</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structSysInfo.html#aeba9b3707e60f739684b6f2b4daa3d86">totalmem</a>;                          
<a name="l00044"></a><a class="code" href="structSysInfo.html#ab89804f29011cfd29ccf8f94018799d4">00044</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structSysInfo.html#ab89804f29011cfd29ccf8f94018799d4">freemem</a>;                           
<a name="l00045"></a><a class="code" href="structSysInfo.html#ab033b9a1257b882c387f5de43a0b86f4">00045</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structSysInfo.html#ab033b9a1257b882c387f5de43a0b86f4">usemem</a>;                            
<a name="l00046"></a>00046 };
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85">00048</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00049"></a><a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85ab165ff7c1df7437cd8d88ad60f486e13">00049</a>         <a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85ab165ff7c1df7437cd8d88ad60f486e13">SYSEVENT_TCP_DISCONNECT</a>,                
<a name="l00050"></a><a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85aa4dc3980c4a86be209b500336507c11b">00050</a>         <a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85aa4dc3980c4a86be209b500336507c11b">SYSEVENT_TCP_CONNECTED</a>,                 
<a name="l00051"></a><a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85a463f7ad2326ffefaa9ac1564ef355553">00051</a>         <a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85a463f7ad2326ffefaa9ac1564ef355553">SYSEVENT_XMPP_DISCONNECT</a>,               
<a name="l00052"></a><a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85a12190959e10c06e872ed6e9b3a64dd57">00052</a>         <a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85a12190959e10c06e872ed6e9b3a64dd57">SYSEVENT_XMPP_CONNECTED</a>,                
<a name="l00053"></a>00053         SYSEVENT_NULL
<a name="l00054"></a>00054 }<a class="code" href="api__type_8h.html#adf1e6fc05557646a909aa64a978bec85">SYSEVENT</a>;
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00057"></a>00057         EI_ADC0,
<a name="l00058"></a>00058         EI_ADC1,
<a name="l00059"></a>00059         EI_ADC_NULL
<a name="l00060"></a>00060 }ADC_PORT;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated at Thu Dec 26 21:32:02 2013 for EasyIO-GPRS-Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
